package com.studentmanagement;

import com.formdev.flatlaf.FlatLightLaf;
import com.studentmanagement.ui.LoginFrame;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        // 设置 FlatLaf 作为观感 (Look and Feel)
        try {
            UIManager.setLookAndFeel(new FlatLightLaf());
        } catch (UnsupportedLookAndFeelException e) {
            System.err.println("初始化 FlatLaf 失败: " + e.getMessage());
        }

        // 在事件调度线程上运行登录窗口
        SwingUtilities.invokeLater(() -> {
            LoginFrame loginFrame = new LoginFrame();
            loginFrame.setVisible(true);
        });
    }
}